<nav class="mt-2">
    <ul class="nav nav-pills nav-sidebar flex-column" data-widget="treeview" role="menu"
        data-accordion="false">
        <!-- Add icons to the links using the .nav-icon class
             with font-awesome or any other icon font library -->
        {{/*        <li class="nav-item">*/}}
        {{/*            <a href="{{.Menu.homeInfo.href}}" class="nav-link">*/}}
        {{/*                <i class="nav-icon fas {{.Menu.homeInfo.icon}}"></i>*/}}
        {{/*                <p>*/}}
        {{/*                    {{.Menu.homeInfo.title}} </p>*/}}
        {{/*            </a>*/}}
        {{/*        </li>*/}}
        {{range $k,$v:= .Menu}}
            {{if eq $v.Type 1}}
                <li class="nav-header">{{$v.Name}}</li>
                {{if $v.Child}}
                    {{range $ck,$cv:= $v.Child}}
                        {{if $cv.Child}}
                            <li class="nav-item has-treeview {{if eq $cv.Select 1}} menu-open {{end}}">
                                <a href="#" class="nav-link {{if eq $cv.Select 1}}active{{end}}">
                                    <i class="nav-icon fa {{$cv.Icon}}"></i>
                                    <p>
                                        {{$cv.Name}}
                                        <i class="fa fa-angle-left right"></i>
                                        {{/*                                    <span class="badge badge-info right">6</span>*/}}
                                    </p>
                                </a>
                                <ul class="nav nav-treeview">
                                    {{range $cck,$ccv:= $cv.Child}}
                                        <li class="nav-item">
                                            <a href="{{$ccv.Url}}"
                                               class="nav-link {{if eq $ccv.Select 1}}active {{end}}">
                                                <i class="fa {{$ccv.Icon}} nav-icon"></i>
                                                <p>{{$ccv.Name}}</p>
                                            </a>
                                        </li>
                                    {{end}}
                                </ul>
                            </li>
                        {{else}}
                            <li class="nav-item">
                                <a href="{{$cv.Url}}" class="nav-link">
                                    <i class="nav-icon fas {{$cv.Icon}}"></i>
                                    <p>
                                        {{$cv.Name}}
                                        {{/*                            <span class="right badge badge-danger">New</span>*/}}
                                    </p>
                                </a>
                            </li>
                        {{end}}
                    {{end}}
                {{end}}

            {{end}}
        {{end}}
    </ul>
</nav>